using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace WqLunTan.Models.DataBase
{
    /// <summary>
    /// 网站头部内容设置
    /// </summary>
    [Table("site_layout_content")]
    public class site_layout_content : BaseUpdateEntity
    {
        /// <summary>
        /// 添加者的用户id
        /// </summary>
        public Guid uid { get; set; }

        /// <summary>
        /// 广告内容
        /// </summary>
        [Required(AllowEmptyStrings = true)]
        public string content { get; set; } = string.Empty;

        /// <summary>
        /// 位置
        /// </summary>
        public AD_Postion position { get; set; }
    }

    /// <summary>
    /// 广告的位置
    /// </summary>
    public enum AD_Postion
    {
        /// <summary>
        /// 网站最上面的内容
        /// </summary>
        Top = 0,

        /// <summary>
        /// 头部
        /// </summary>
        Head = 1,

        /// <summary>
        /// 左边的轮播广告
        /// </summary>
        Banner_Left = 2,

        /// <summary>
        /// 右边的轮播广告
        /// </summary>
        Banner_Right = 3,

        /// <summary>
        /// 底部内容
        /// </summary>
        Bottom = 4
    }
}
